﻿/// <reference name="MicrosoftAjax.js"/>
function ChangeLanguage(countryID) {
    var dm = GetDomain();
    var url = dm + '/AjaxData/ChangeLanguage/' + countryID;
    $.ajax({
        url: url,
        type: 'POST',
        data: { id: countryID },
        sucess: function(html) {
            if (html == true) {
                window.open(location.reload(true));
            }
        },
        error: function(mes) {
            window.location.reload();
        }
    });
}